package xyz.chaobei.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import xyz.chaobei.entity.OrgUserEntity;

/**
 * mapper
 * @author mrc
 */
public interface OrgUserMapper extends BaseMapper<OrgUserEntity> {

    /**
     * 新增用户与角色的关系
     * @param orgUserEntity
     * @return
     */
    int saveUserRoles(@Param("user") OrgUserEntity orgUserEntity);
    /**
     * 通过ID 查询
     * @param id
     * @return
     */
    OrgUserEntity findById(Integer id);
}